import request from '@/utils/request'

export function findHotCourses(data) {
    return request({
      url: '/course/hotCourses',
      method: 'post',
      data:data
    })
  }

  export function findCompanyRecommend(data) {
    return request({
      url: '/course/companyRecommend',
      method: 'post',
      data:data
    })
  }

  export function addCourse(userId,cocurseId) {
    return request({
      url: '/user/addCourse/'+ userId +'/' + cocurseId,
      method: 'post',
    })
  }